package com.aaa.service.back.Impl;

import com.aaa.entity.Dept;
import com.aaa.entity.Position;
import com.aaa.mapper.back.DeptMapper;
import com.aaa.mapper.back.PositionMapper;
import com.aaa.service.back.DeptService;
import com.aaa.service.back.PositionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class PositionServiceImpl implements PositionService {

    @Resource
    private PositionMapper positionMapper;

    @Override
    public List<Map<String, Object>> findPosition() {
        return positionMapper.findPosition();
    }

    @Override
    public Map<String, Object> findByPositionId(Integer positionId) {
        return positionMapper.findByPositionId(positionId);
    }

    @Override
    public int addPosition(Position position) {
        return positionMapper.addPosition(position);
    }

    @Override
    public int editPosition(Position position) {
        return positionMapper.editPosition(position);
    }
}
